package com.itheima.sc.web.order;

import com.itheima.sc.result.Result;
import com.itheima.sc.service.order.OmsOrderSettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("companyAddress")
public class OmsCompanyAddressController {
    @Autowired
    OmsOrderSettingService omsOrderSettingService;
    @GetMapping("list")
    public Result listAddress(){
        return omsOrderSettingService.getAddress();
    }
}
